home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / debugger / ddd-1.000 / ddd-1 / ddd-1.4b / ddd / GraphNode.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-21  |  1.6 KB  |  53 lines

  1. // $Id: GraphNode.h,v 1.3 1995/11/21 13:50:13 zeller Exp $
  2. // GraphNode Class
  3.  
  4. // Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
  5. // Written by Andreas Zeller (zeller@ips.cs.tu-bs.de).
  6. // 
  7. // This file is part of the DDD Library.
  8. // 
  9. // The DDD Library is free software; you can redistribute it and/or
  10. // modify it under the terms of the GNU Library General Public
  11. // License as published by the Free Software Foundation; either
  12. // version 2 of the License, or (at your option) any later version.
  13. // 
  14. // The DDD Library is distributed in the hope that it will be useful,
  15. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. // See the GNU Library General Public License for more details.
  18. // 
  19. // You should have received a copy of the GNU Library General Public
  20. // License along with the DDD Library -- see the file COPYING.LIB.
  21. // If not, write to the Free Software Foundation, Inc.,
  22. // 675 Mass Ave, Cambridge, MA 02139, USA.
  23. // 
  24. // DDD is the data display debugger.
  25. // For details, see the DDD World-Wide-Web page, 
  26. // `http://www.cs.tu-bs.de/softech/ddd/',
  27. // or send a mail to the DDD developers at `ddd@ips.cs.tu-bs.de'.
  28.  
  29. #ifndef _Nora_GraphNode_h
  30. #define _Nora_GraphNode_h
  31.  
  32. #ifdef __GNUG__
  33. #pragma interface
  34. #endif
  35.  
  36.  
  37. #include "GraphNodeI.h"
  38. #include "GraphEdge.h"
  39.  
  40. inline GraphEdge *GraphNode::nextFrom(GraphEdge *ref) const
  41. {
  42.     assert(ref->from() == this);
  43.     return ref->_nextFrom == _firstFrom ? 0 : ref->_nextFrom;
  44. }
  45.  
  46. inline GraphEdge *GraphNode::nextTo(GraphEdge *ref) const
  47. {
  48.     assert(ref->to() == this);
  49.     return ref->_nextTo == _firstTo ? 0 : ref->_nextTo;
  50. }
  51.  
  52. #endif
  53.